package com.su.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
@TableName(value = "account")
public class Account {
    /**
     * 编号
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer ID;

    /**
     * 用户编号
     */
    @TableField(value = "`UID`")
    private Integer UID;

    /**
     * 金额
     */
    @TableField(value = "MONEY")
    private Double MONEY;

    private User user;

    public static final String COL_ID = "ID";

    public static final String COL_UID = "UID";

    public static final String COL_MONEY = "MONEY";
}